<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>搜索二维矩阵</title>
</head>
<body>
    <script>
        let matrix = [[1,4,7,11,15],[2,5,8,12,19],[3,6,9,16,22],[10,13,14,17,24],[18,21,23,26,30]], target = 5
        let x=matrix[0].length
        let y=matrix.length
        console.log(x,y);
        
    </script>
</body>
</html>